package model.sales;
// Generated Feb 14, 2013 10:33:00 PM by Hibernate Tools 3.2.1.GA


import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TrsSalesSaving generated by hbm2java
 */
@Entity
@Table(name="trs_sales_saving", schema="sales")
public class SalesSaving  implements java.io.Serializable {

     private int id;
     private SalesInit salesInit;
     private Date transTime;
     private BigDecimal amount;
     private Integer userLog;
     private String insertedLog;

    public SalesSaving() {
    }

    @Id 
    @Column(name="id", unique=true, nullable=false)
    public int getId() {
        return this.id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="init_id")
    public SalesInit getSalesInit() {
        return this.salesInit;
    }
   
    public void setSalesInit(SalesInit salesInit) {
        this.salesInit = salesInit;
    }

    @Temporal(TemporalType.TIME)
    @Column(name="trans_time", length=15)
    public Date getTransTime() {
        return transTime;
    }

    public void setTransTime(Date transTime) {
        this.transTime = transTime;
    }
    
    @Column(name="amount", precision=13)
    public BigDecimal getAmount() {
        return this.amount;
    }
    
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
    
    @Column(name="user_log")
    public Integer getUserLog() {
        return this.userLog;
    }
    
    public void setUserLog(Integer userLog) {
        this.userLog = userLog;
    }
    
    @Column(name="inserted_log", length=50)
    public String getInsertedLog() {
        return this.insertedLog;
    }
    
    public void setInsertedLog(String insertedLog) {
        this.insertedLog = insertedLog;
    }




}


